<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="EmpresasViewDlg" widgetVar="EmpresasViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.ViewEmpresasTitle}">
            <h:form id="EmpresasViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{empresasController.selected != null}">
                        <h:outputText value="#{bundle.ViewEmpresasLabel_id}"/>
                        <h:outputText value="#{empresasController.selected.id}" title="#{bundle.ViewEmpresasTitle_id}"/>
                        <h:outputText value="#{bundle.ViewEmpresasLabel_nome}"/>
                        <h:outputText value="#{empresasController.selected.nome}" title="#{bundle.ViewEmpresasTitle_nome}"/>
                        <h:outputText value="#{bundle.ViewEmpresasLabel_cnpj}"/>
                        <h:outputText value="#{empresasController.selected.cnpj}" title="#{bundle.ViewEmpresasTitle_cnpj}">
                            <f:convertNumber pattern="99-999-999/9999-99" />
                        </h:outputText>
                        <h:outputText value="#{bundle.ViewEmpresasLabel_inscricaoEstadual}"/>
                        <h:outputText value="#{empresasController.selected.inscricaoEstadual}" title="#{bundle.ViewEmpresasTitle_inscricaoEstadual}"/>
                        <h:outputText value="#{bundle.ViewEmpresasLabel_numero}"/>
                        <h:outputText value="#{empresasController.selected.numero}" title="#{bundle.ViewEmpresasTitle_numero}"/>
                        <h:outputText value="#{bundle.ViewEmpresasLabel_fone}"/>
                        <h:outputText value="#{empresasController.selected.fone}" title="#{bundle.ViewEmpresasTitle_fone}"/>
                        <h:outputText value="#{bundle.ViewEmpresasLabel_fax}"/>
                        <h:outputText value="#{empresasController.selected.fax}" title="#{bundle.ViewEmpresasTitle_fax}"/>
                        <h:outputText value="#{bundle.ViewEmpresasLabel_logradouro}"/>
                        <h:outputText value="#{empresasController.selected.logradouro.toString()}" title="#{bundle.ViewEmpresasTitle_logradouro}"/>
                        <h:outputText value="#{bundle.ViewEmpresasLabel_cidade}"/>
                        <h:outputText value="#{empresasController.selected.cidade.toString()}" title="#{bundle.ViewEmpresasTitle_cidade}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="EmpresasViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
